package com.hao.study.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

import java.io.Serializable;
import java.util.List;

/**
 * @author: author
 * @description:
 * @date: 2024/6/10 22:18
 * @version: 1.0
 */
@Data
@TableName(value ="b_thing")
public class Thing implements Serializable {
    @TableId(value = "id",type= IdType.AUTO)
    public Long id;
    @TableField
    public String title; //标题
    @TableField
    public String cover; //封面
    @TableField
    public String description; //描述
    @TableField
    public String education; //学历
    @TableField
    public String status; // 0上架 1下架
    @TableField
    public String createTime; //创建时间
    @TableField
    public String location; //地址
    @TableField
    public String salary; //薪资
    @TableField
    public String workExpe; //工作经验
    @TableField
    public String pv; //?浏览量
    @TableField
    public String recommendCount; //推荐次数
    @TableField
    public String wishCount; //收藏次数
    @TableField
    public String collectCount; //投递次数
    @TableField
    public Long classificationId; //分类id
    @TableField(exist = false)
    public List<Long> tags; //标签
    @TableField(exist = false)
    public MultipartFile imageFile; //图片
    @TableField
    public String userId; //用户id
    @TableField
    public String companyId; //公司id
}
